#ifndef BREPFEATURE_H
#define BREPFEATURE_H
/*
布尔保存布尔ID、初始对象ID、初始对象拓扑数据、布尔类型、结果对象ID
*/
#include "BaseFeature.h"
#include <RWTools.h>
class BrepFeature : public BaseFeature {
public:
	BrepFeature();
	~BrepFeature();

public:
	//获取私有变量
	int getBrepId();
	int getBrepType();
    int getResultId() override;
    BaseFeature* getToolFeature() override;
    BaseFeature* getTargetFeature() override;

	//设置私有变量
    void setBrepId(int brepId);	
    void setBrepType(int brepType);
    /*void setTargetId(int targetId);
    void setToolId(int toolId);*/
	void setResultId(int resultId);
    void setToolFeature(BaseFeature* toolFeature);
    void setTargetFeature(BaseFeature* targetFeature);
	void AddOperation(BaseFeature* feature) override;

private:
	int brepId;
	int brepType;
	int resultId;
	//保存布尔运算前的拓扑数据
	//判断对象是否是不规则对象（即是操作子类），若是则先重做操作获取不规则对象
	BaseFeature* toolFeature;
	BaseFeature* targetFeature;
};
#endif
